//package com.maxatime.matrix.quartzx;
//
//import org.quartz.DisallowConcurrentExecution;
//import org.quartz.JobExecutionContext;
//import org.quartz.JobExecutionException;
//import org.springframework.scheduling.quartz.QuartzJobBean;
//
//import java.util.UUID;
//
//@DisallowConcurrentExecution
//public class TestQuartz extends QuartzJobBean {
//
//    @Override
//    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
//        String random= UUID.randomUUID().toString();
//        System.out.println("任务开始:"+random);
//        try {
//            Thread.sleep(6000);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
//        System.out.println("任务结束:"+random);
//    }
//}
